import request from '@/utils/request'

// 查询航班离港列表
export function listDeparture(query) {
  return request({
    url: '/dyn/departure/list',
    method: 'get',
    params: query
  })
}

// 查询航班离港详细
export function getDeparture(departureid) {
  return request({
    url: '/dyn/departure/' + departureid,
    method: 'get'
  })
}

// 新增航班离港
export function addDeparture(data) {
  return request({
    url: '/dyn/departure',
    method: 'post',
    data: data
  })
}

// 修改航班离港
export function updateDeparture(data) {
  return request({
    url: '/dyn/departure',
    method: 'put',
    data: data
  })
}

// 删除航班离港
export function delDeparture(departureid) {
  return request({
    url: '/dyn/departure/' + departureid,
    method: 'delete'
  })
}
